<?php

namespace App\Http\Controllers\Api\V1;

use App\Models\Poster;
use App\Http\Controllers\Api\V1\Resources\PosterResource;

class PostersController extends Controller
{
    public function index()
    {
    	PosterResource::wrap('data');
    	$posters = Poster::query()->get();
	    return PosterResource::collection($posters);
    }
    
    /*public function store(Poster $poster)
    {
    	return response()->json([
		    'mini_user_invite_poster' => request()->user()->inviteMiniUserPoster($poster)
	    ]);
    }
    
    public function storeWap(Poster $poster)
    {
    	return response()->json([
		    'wap_user_invite_poster' => request()->user()->inviteWapUserPoster($poster)
	    ]);
    }

    public function inviter()
    {
        return response()->json([
            'mini_user_invite_qrcode' => request()->user()->inviteMiniQrcode()
        ]);
    }*/
}
